package application.food;

import application.GameManager;
import application.visitorPattern.SnakeVisitor;

public class IceCream extends Food {
	
	private String _type;
	/**
	 * constructor
	 */
	public IceCream(){
		this.set_type("Ice Cream");
	}
	/**
	 * visited accept method override
	 */
	@Override
	public void accept(SnakeVisitor v) {
		GameManager.print("in accept: ice cream");
		v.visit(this);
	}
	/***
	 * setter
	 * @param _type
	 */
	public void set_type(String _type) {
		this._type = _type;
	}
	/**
	 * getter
	 * @return
	 */
	public String get_type() {
		return _type;
	}
	/**
	 * toString override method
	 */
	@Override
	public String toString() {
		return this.get_type();
	}
	/**
	 * returns the name of the image file for this food type
	 */
	@Override
	public String toFileName() {
		return "icecream.png";
	}

}
